5 ONERRORGOTO1000 10 MODE8:DIM:c$=CHR$(5):ANGLE0:a=1:b=0:c=0:d=0 20 CLS:PRINT"axþ+bxý+cx+d=0"; 30 s$="a":z=a:GOSUB700:a=z:IFa=0 THEN30 40 s$="b":z=b:GOSUB700:b=z 50 s$="c":z=c:GOSUB700:c=z 60 s$="d":z=d:GOSUB700:d=z 70 LOCATE0,1:PRINTc$;"....."; 100 u=b/a/3:p=c/a/3-u*u:q=2*u*u*u-u*c/a+d/a 102 IFABSp13 ANDw<>31 THEN360 370 PRINTc$;"Ü =";y$;"-";:IFy THENPRINT" "; 380 IFz-1 THENPRINTz$;"i"; ELSEPRINT"i"; 390 GOSUB550:IFw=30 THEN340 ELSEIFw=13 THEN20 ELSE390 400 h=ACS(q/2/SQR(ABS(-p*p*p)))/3:i=-2*SQR(ABS(-p)):x=i*COSh-u:y=i*COS(h+120)-u:z=i*COS(h+240)-u 405 GOSUB500:PRINT"a(x-à)(x-á)(x-Ü)=0";:PRINT 410 PRINTc$;"à =";x; 430 GOSUB550:IFw<>13 ANDw<>31 THEN430 440 PRINTc$;"á =";y; 460 GOSUB550:IFw=30 THEN410 ELSEIFw<>13 ANDw<>31 THEN460 470 PRINTc$;"Ü =";z; 490 GOSUB550:IFw=30 THEN440 ELSEIFw=13 THEN20 ELSE490 500 IFz<>0 ANDABSz>=1e-90 THENz=ROUND(z,LOG(ABSz)-7) 502 IFz<>0 ANDABSz<1e-90 THENz=z*1e10:z=ROUND(z,LOG(ABSz)-7):z=z/1e10 505 IFABSz0 ANDABSy>=1e-90 THENy=ROUND(y,LOG(ABSy)-7) 512 IFy<>0 ANDABSy<1e-90 THENy=y*1e10:y=ROUND(y,LOG(ABSy)-7):y=y/1e10 515 IFABSy0 ANDABSx>=1e-90 THENx=ROUND(x,LOG(ABSx)-7) 522 IFx<>0 ANDABSx<1e-90 THENx=x*1e10:x=ROUND(x,LOG(ABSx)-7):x=x/1e10 525 IFABSx